Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add buyer bid adapter #3200

Merged
merged 28 commits into from
Oct 19, 2018
Merged

Add buyer bid adapter #3200

merged 28 commits into from
Oct 19, 2018

Conversation

avj83
Copy link
Contributor

@avj83 avj83 commented Oct 18, 2018

Type of change

  • New bidder adapter

Description of change

New adapter

  • test parameters for validating bids
{
  bidder: 'buyer',
  params: {
    placement: 101
  }
}

Be sure to test the integration with your adserver using the Hello World sample page.

  • contact email of the adapter’s maintainer: avj83@list.ru
  • official adapter submission

For any changes that affect user-facing APIs or example code documented on http://prebid.org, please provide:

Other information

Copy link
Collaborator

@jsnellbaker jsnellbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avj83 Thanks for putting this adapter together.

It largely looks good and the test param you included in the description is successfully returning the bid. There are a few points that should be reviewed (see in-line comments).

const placementId = params.placement;

const rnd = Math.floor(Math.random() * 99999999999);
const referrer = encodeURIComponent(utils.getTopWindowUrl()); // bidderRequest.refererInfo ??
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to use the bidderRequest.referrerInfo.referer field instead of the utils.getTopWindowUrl() as that will eventually be deprecated.

}
return bidResponses;
},
getUserSyncs: function(syncOptions, serverResponses) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're not going to set any pixels, you can remove this entire getUserSyncs property from the adapter code.

@jsnellbaker
Copy link
Collaborator

Also - to clear the circleci errors, please resync/rebase off of master. We committed some changes yesterday to address these sporadic failures.

@jsnellbaker
Copy link
Collaborator

Thanks for making the updates; LGTM

@jsnellbaker jsnellbaker merged commit a62e088 into prebid:master Oct 19, 2018
idettman pushed a commit to rubicon-project/Prebid.js that referenced this pull request Nov 14, 2018
* add adapter and doc

* add test

* fix adapter

* fix adapter

* fix adapter

* correct code after tests

* fix tests

* fix adapter and test

* fix buildQueryString and tests

* fix cpm devisor

* fix cpm devisor test

* fix doc

* fix tests

* add adapter and doc

* add test

* fix adapter

* fix adapter

* fix adapter

* correct code after tests

* fix tests

* fix adapter and test

* fix buildQueryString and tests

* fix cpm devisor

* fix cpm devisor test

* fix doc

* fix tests

* change referer source and remove userSync
ghost pushed a commit to devunrulymedia/Prebid.js that referenced this pull request Jan 30, 2019
* add adapter and doc

* add test

* fix adapter

* fix adapter

* fix adapter

* correct code after tests

* fix tests

* fix adapter and test

* fix buildQueryString and tests

* fix cpm devisor

* fix cpm devisor test

* fix doc

* fix tests

* add adapter and doc

* add test

* fix adapter

* fix adapter

* fix adapter

* correct code after tests

* fix tests

* fix adapter and test

* fix buildQueryString and tests

* fix cpm devisor

* fix cpm devisor test

* fix doc

* fix tests

* change referer source and remove userSync
pedrolopezmrf pushed a commit to Marfeel/Prebid.js that referenced this pull request Mar 18, 2019
* add adapter and doc

* add test

* fix adapter

* fix adapter

* fix adapter

* correct code after tests

* fix tests

* fix adapter and test

* fix buildQueryString and tests

* fix cpm devisor

* fix cpm devisor test

* fix doc

* fix tests

* add adapter and doc

* add test

* fix adapter

* fix adapter

* fix adapter

* correct code after tests

* fix tests

* fix adapter and test

* fix buildQueryString and tests

* fix cpm devisor

* fix cpm devisor test

* fix doc

* fix tests

* change referer source and remove userSync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants